import App from './App'
import CustomTabBar from './custom-tab-bar/index.vue'
import { createSSRApp } from 'vue'
import pinia from './stores/index.js'

export function createApp() {
  const app = createSSRApp(App)
  app.use(pinia)
  // 全局注册自定义tabBar组件
  app.component('CustomTabBar', CustomTabBar)
  return {
    app
  }
}